// CppUnit-Tutorial
// Datei: bruchtest.h
#ifndef BRUCHTEST_H
#define BRUCHTEST_H

#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "../include/files.h"

using namespace std;
using namespace oal;

class testFiles : public CPPUNIT_NS :: TestFixture
{
	CPPUNIT_TEST_SUITE (testFiles);
	CPPUNIT_TEST (addContentIntoFile);
	CPPUNIT_TEST (checkForExistingFile);
	CPPUNIT_TEST (readContentFromFile);
	CPPUNIT_TEST (checkForExistingFileWithNoFile);
	CPPUNIT_TEST (exceptionTestForNoExistsFile);
	CPPUNIT_TEST (testDeleteFileFromDisk);
	CPPUNIT_TEST_SUITE_END ();

	public:
		void setUp (void);
		void tearDown (void);

	protected:
		void addContentIntoFile (void);
		void checkForExistingFile(void);
		void readContentFromFile(void);
		void exceptionTestForNoExistsFile (void);
		void checkForExistingFileWithNoFile (void);
		void testDeleteFileFromDisk (void);

	private:
		oal::files *file;
};

#endif
